/**
 * 日志记录类
 * 
 * @param {Boolean}
 *            on--日志开关
 */
var Log, log;
if (!(Log != undefined && typeof Log == 'function')) {
	Log = function(on) {
		this.flag = !!on;
	};
	/**
	 * 日志开关切换
	 * 
	 * @param {Boolean}
	 *            on--日志开关
	 */
	Log.prototype.switchover = function(on) {
		if (on != undefined) {
			this.flag = !!on;
		} else {
			this.flag = !this.flag;
		}
	};
	/**
	 * 获得日志开关
	 */
	Log.prototype.status = function() {
		return this.flag;
	}
	/**
	 * 输出日志
	 * 
	 * @param {String}
	 *            log
	 */
	Log.prototype.log = function(log) {
		if (this.flag) {
			eclipse.console.println(log);
		}
	}
	log = new Log();
}
